package com.gxa.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

/**
 * (Log)实体类
 *
 * @author makejava
 * @since 2020-11-25 17:18:40
 */
@ApiModel(value = "日志实体类")
@Component
public class Log implements Serializable {
    private static final long serialVersionUID = -71701478195800594L;
    /**
     * 日志id
     */
    @ApiModelProperty(name = "logId",notes = "日志id",required = false,value = "日志id")
    private Integer logId;
    /**
     * 操作者
     */
    @ApiModelProperty(name = "operator",notes = "操作者",required = true,value = "操作者")
    private String operator;
    /**
     * 操作时间
     */
    @ApiModelProperty(name = "operaTime",notes = "操作时间",required = false,value = "操作时间")
    private Date operaTime;
    /**
     * ip地址
     */
    @ApiModelProperty(name = "ipAdd",notes = "ip地址",required = true,value = "ip地址")
    private String ipAdd;
    /**
     * 操作记录
     */
    @ApiModelProperty(name = "operaRec",notes = "操作记录",required = true,value = "操作记录")
    private String operaRec;


    public Integer getLogId() {
        return logId;
    }

    public void setLogId(Integer logId) {
        this.logId = logId;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Date getOperaTime() {
        return operaTime;
    }

    public void setOperaTime(Date operaTime) {
        this.operaTime = operaTime;
    }

    public String getIpAdd() {
        return ipAdd;
    }

    public void setIpAdd(String ipAdd) {
        this.ipAdd = ipAdd;
    }

    public String getOperaRec() {
        return operaRec;
    }

    public void setOperaRec(String operaRec) {
        this.operaRec = operaRec;
    }

    @Override
    public String toString() {
        return "Log{" +
                "logId=" + logId +
                ", operator='" + operator + '\'' +
                ", operaTime=" + operaTime +
                ", ipAdd='" + ipAdd + '\'' +
                ", operaRec='" + operaRec + '\'' +
                '}';
    }
}